package com.itany.thread.test01;

public class Test06 {
	public static void main(String[] args) {
		Object obj1 = new Object();
		Object obj2 = new Object();
		ThreadA a = new ThreadA(obj1,obj2);
		ThreadB b = new ThreadB(obj1,obj2);
		Thread t1 = new Thread(a);
		Thread t2 = new Thread(b);
		t1.start();
		t2.start();
	}
}
